import { createStore } from 'vuex'
const store = createStore({
  state: {
    identity: '',
    dept: [],
    userList:[]
  },
  mutations: {
    USER_OUT(state,n){
      state.identity = n
      state.dept = n
      state.userList = n
    },
    setIdentity(state, identity) {
      state.identity = identity
    },
    setDept(state,Dept){
      state.dept = Dept
    },
    setUserList(state, userList){
      state.userList = userList
    }
  },
  getters: {
    Identity(state) {
      return state.identity
    },
  },
  actions: {},
})

export default store
